<template>
	<view>
		<u-cell-group>
			<u-cell v-for="(item,index) in notice" :title="item.activityname" value="审核中"
				@click="handle(item.activityId,item.activityname,item.id,item.name)"></u-cell>
		</u-cell-group>
	</view>
</template>

<script>
	import {
		getSchoolNotice
	} from "@/api/school/index.js"
	export default {
		data() {
			return {
				notice: []
			}
		},
		methods: {

			schoolNotice(schoolId) {

				getSchoolNotice(schoolId).then(res => {
					res.notice.forEach(item => {
						item.name = item.name.substr(0, item.name.length - 5)
					})

					this.notice = res.notice
					console.log(this.notice)

				})

			},
			handle(activityId, activityname, id, name) {
				this.$tab.navigateTo('/pages/school-work/school-rectifyNotice/rectified-notice-concent?activityId=' +
					activityId + '&activityname=' + activityname + '&id=' + id + '&name=' + name)
			}

		},
		onLoad(option) {
			this.schoolNotice(option.schoolId)

		}
	}
</script>

<style>

</style>